package org.rcy.framework.thrift.serializer;

import org.apache.thrift.TException;
import org.apache.thrift.protocol.TProtocol;
import org.rcy.framework.thrift.metadata.FieldValueMetaData;

public interface Serializer {
	
	Object read(TProtocol iprot, FieldValueMetaData valueMetaData) throws TException;
	
	void write(TProtocol oprot, FieldValueMetaData valueMetaData, Object value) throws TException;

}
